{extend name="public:_base" /}
{block name="js"}
{load href="__STATIC__/admin/hui/lib/My97DatePicker/4.8/WdatePicker.js" /}
{/block}
{block name="main"}

<div class="page-container">

    <form name="" method="get" action="">
        <div class="text-c mb-10">
            日期范围：
            <input type="text" name="start_time" id="countTimestart" onfocus="selecttime(1)" class="input-text Wdate"
                   placeholder="开始时间"
                   style="width:140px;" value="{$Think.get.start_time}" size="17" class="date" readonly>
            - <input type="text" name="end_time" id="countTimeend" onfocus="selecttime(2)" class="input-text Wdate"
                     placeholder="结束时间"
                     style="width:140px;" value="{$Think.get.end_time}" size="17" class="date" readonly>

            <input type="text" name="name" placeholder="用户名" style="width:250px" value="{$Think.get.title}"
                   class="input-text">
            <button name="" class="btn radius btn-success" type="submit"><i class="Hui-iconfont"></i> 搜咨询</button>
        </div>
    </form>

    <div class="cl pd-5 bg-1 bk-gray">
        <span>
            <a class="btn radius btn-default" href="{:url(\''.\\think\\Request::instance()->controller().'/index',['status'=>0])}">未审核</a>
        </span>

        <span>
            <a class="btn radius btn-success" href="{:url(\''.\\think\\Request::instance()->controller().'/index',['status'=>1])}">已通过</a>
        </span>

        <span>
            <a class="btn radius btn-danger" href="{:url(\''.\\think\\Request::instance()->controller().'/index',['status'=>2])}">不通过</a>
        </span>

        <span class="r">共有数据：<strong>{$num}</strong> 条</span>
    </div>

    <div class="mt-10">
        <table class="layui-table">
            <thead>
            <tr class="text-c">
                <th width="40"><input name="" type="checkbox" value=""></th>
                <th width="40">ID</th>
                <th width="100">用户名</th>
                <th width="100">{:sort_by('审核情况','status')}</th>
                <th width="100">{:sort_by('QQ','QQ')}</th>
                <th width="100">{:sort_by('类型','type')}</th>
                <th width="100">{:sort_by('首页显示位置','position')}</th>
                <th width="100">{:sort_by('创建时间','create_time')}</th>
                <th width="100">最后登录</th>
                <th width="100">操作</th>
            </tr>
            </thead>
            <tbody>
            {volist name="list" id="vo" empty="$_html_empty"}
            <tr class="text-c va-m">
                <td><input name="id[]" type="checkbox" value="{$vo.id}"></td>
                <td>{$Think.get.page?(($Think.get.page-1)*$Think.config.paginate.list_rows+$i):($i)}</td>
                <td class="text-l">
                    {$vo.name}
                </td>
                <td>
                    {$vo.status|show_status=$vo.id}
                </td>
                <td>
                    {notempty name="$vo.QQ"}
                        {$vo.QQ}<br>
                        <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin={$vo.QQ}&site=qq&menu=yes">
                            <img border="0" src="http://wpa.qq.com/pa?p=2:{$vo.QQ}:51" alt="点击这里给我发消息" title="点击这里给我发消息"/>
                        </a>
                    {/notempty}
                </td>
                <td>
                    {$vo.type?'领导':'学员'}
                </td>
                <td>
                    {neq name="$vo.position" value="0"}
                    {:config('nav.user_postion')[$vo.position]}
                    {/neq}
                </td>
                <td>
                    {$vo.create_time}
                </td>
                <td>
                    {if $vo.last_login_time}{$vo.last_login_time|date="Y-m-d H:i:s",###}{/if}
                </td>
                <td class="td-manage">
                    <a style="text-decoration:none" class="btn radius btn-xs btn-success"
                       onClick="edit('编辑','{:url(\''.\\think\\Request::instance()->controller().'/edit',['id'=>$vo.id])}','10001')"
                       href="javascript:;"
                       title="编辑">编辑</a>
                    <!--<a style="text-decoration:none" class="btn radius btn-xs btn-danger"-->
                       <!--onClick="del_old(this,'{:url(\''.\\think\\Request::instance()->controller().'/del',['id'=>$vo.id])}','10001')"-->
                       <!--href="javascript:;"-->
                       <!--title="删除">删除</a>-->
                    <a style="text-decoration:none" class="btn radius btn-xs btn-danger"
                       onClick="del('{:url(\''.\\think\\Request::instance()->controller().'/del')}',{$vo.id})"
                       href="javascript:;"
                       title="删除">删除</a>
                </td>
            </tr>
            {/volist}
            </tbody>
        </table>
        {$list->render()}
    </div>
</div>
</div>

{/block}